<!doctype html>
<html lang="zh-CN" data-theme="light">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <meta name="generator" content="VuePress 2.0.0-rc.7" />
    <meta name="theme" content="VuePress Theme Hope 2.0.0-rc.24" />
    <style>
      html {
        background: var(--bg-color, #fff);
      }

      html[data-theme="dark"] {
        background: var(--bg-color, #1d1e1f);
      }

      body {
        background: var(--bg-color);
      }
    </style>
    <script>
      const userMode = localStorage.getItem("vuepress-theme-hope-scheme");
      const systemDarkMode =
        window.matchMedia &&
        window.matchMedia("(prefers-color-scheme: dark)").matches;

      if (userMode === "dark" || (userMode !== "light" && systemDarkMode)) {
        document.documentElement.setAttribute("data-theme", "dark");
      }
    </script>
    <meta property="og:url" content="https://l1binn.github.io/practice/network/eNSP.html"><meta property="og:site_name" content="科研笔记"><meta property="og:title" content="计算机网络实践 | 华为eNSP"><meta property="og:description" content="什么是eNSP？ eNSP（Enterprise Network Simulation Platform）是一款由华为提供的网络仿真工具平台。 它主要对企业网络路由器、交换机进行软件仿真，完美呈现真实设备实景，并且支持大型网络模拟。 用户可以在没有真实设备的情况下，利用eNSP进行模拟演练和学习网络技术。 eNSP可以模拟各种网络设备，如交换机、路由器..."><meta property="og:type" content="website"><meta property="og:image" content="https://l1binn.github.io/practice/network/静态IP配置拓扑图.png"><meta property="og:locale" content="zh-CN"><meta property="og:updated_time" content="2024-07-12T11:06:17.000Z"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:image:alt" content="计算机网络实践 | 华为eNSP"><meta property="article:author" content="高礼彬"><meta property="article:tag" content="eNSP"><meta property="article:tag" content="华为"><meta property="article:published_time" content="2024-04-05T00:00:00.000Z"><meta property="article:modified_time" content="2024-07-12T11:06:17.000Z"><script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"计算机网络实践 | 华为eNSP","description":"什么是eNSP？ eNSP（Enterprise Network Simulation Platform）是一款由华为提供的网络仿真工具平台。 它主要对企业网络路由器、交换机进行软件仿真，完美呈现真实设备实景，并且支持大型网络模拟。 用户可以在没有真实设备的情况下，利用eNSP进行模拟演练和学习网络技术。 eNSP可以模拟各种网络设备，如交换机、路由器..."}</script><title>计算机网络实践 | 华为eNSP | 科研笔记</title><meta name="description" content="什么是eNSP？ eNSP（Enterprise Network Simulation Platform）是一款由华为提供的网络仿真工具平台。 它主要对企业网络路由器、交换机进行软件仿真，完美呈现真实设备实景，并且支持大型网络模拟。 用户可以在没有真实设备的情况下，利用eNSP进行模拟演练和学习网络技术。 eNSP可以模拟各种网络设备，如交换机、路由器...">
    <link rel="preload" href="/assets/style-CAhH3mVk.css" as="style"><link rel="stylesheet" href="/assets/style-CAhH3mVk.css">
    <link rel="modulepreload" href="/assets/app-BlE301HX.js"><link rel="modulepreload" href="/assets/eNSP.html-CcRh9b6M.js"><link rel="modulepreload" href="/assets/plugin-vue_export-helper-DlAUqK2U.js">
    <link rel="prefetch" href="/assets/intro.html-C0cqGGWC.js" as="script"><link rel="prefetch" href="/assets/index.html-BwV1uQdi.js" as="script"><link rel="prefetch" href="/assets/detect-basis.html-DJ4_WT6Q.js" as="script"><link rel="prefetch" href="/assets/diffusion.html-3vA0mAiW.js" as="script"><link rel="prefetch" href="/assets/yolo-intro.html-Cc1wbOGV.js" as="script"><link rel="prefetch" href="/assets/yolo-pywebview-livestream-software.html-Cc8aEoxq.js" as="script"><link rel="prefetch" href="/assets/404.html-DK7j_u41.js" as="script"><link rel="prefetch" href="/assets/index.html-DHhAZZMi.js" as="script"><link rel="prefetch" href="/assets/index.html-BTZ3qFZ0.js" as="script"><link rel="prefetch" href="/assets/index.html-BIvC54fu.js" as="script"><link rel="prefetch" href="/assets/index.html-CG4E10A1.js" as="script"><link rel="prefetch" href="/assets/index.html-BzMIsEoO.js" as="script"><link rel="prefetch" href="/assets/index.html-DaHGDDjv.js" as="script"><link rel="prefetch" href="/assets/index.html-ZCX951Qa.js" as="script"><link rel="prefetch" href="/assets/index.html-BV2tS831.js" as="script"><link rel="prefetch" href="/assets/index.html-CuEjlANv.js" as="script"><link rel="prefetch" href="/assets/index.html-DSopgZIk.js" as="script"><link rel="prefetch" href="/assets/index.html-C1NyF2KB.js" as="script"><link rel="prefetch" href="/assets/index.html-BGervjKN.js" as="script"><link rel="prefetch" href="/assets/index.html-Cx-3fRfZ.js" as="script"><link rel="prefetch" href="/assets/index.html-ClyRBr1W.js" as="script"><link rel="prefetch" href="/assets/index.html-lvElwGJu.js" as="script"><link rel="prefetch" href="/assets/index.html-C0Zmn7bt.js" as="script"><link rel="prefetch" href="/assets/photoswipe.esm-SzV8tJDW.js" as="script">
  </head>
  <body>
    <div id="app"><!--[--><!--[--><!--[--><span tabindex="-1"></span><a href="#main-content" class="vp-skip-link sr-only">跳至主要內容</a><!--]--><div class="theme-container no-sidebar has-toc"><!--[--><header id="navbar" class="vp-navbar"><div class="vp-navbar-start"><button type="button" class="vp-toggle-sidebar-button" title="Toggle Sidebar"><span class="icon"></span></button><!--[--><!----><!--]--><!--[--><a class="route-link vp-brand" href="/"><img class="vp-nav-logo" src="/logo.svg" alt><!----><span class="vp-site-name hide-in-pad">科研笔记</span></a><!--]--><!--[--><!----><!--]--></div><div class="vp-navbar-center"><!--[--><!----><!--]--><!--[--><nav class="vp-nav-links"><div class="nav-item hide-in-mobile"><a class="route-link nav-link" href="/" aria-label="博客主页"><span class="font-icon icon iconfont icon-home" style=""></span>博客主页<!----></a></div><div class="nav-item hide-in-mobile"><a class="route-link nav-link" href="/research/" aria-label="科研工作"><span class="font-icon icon iconfont icon-creative" style=""></span>科研工作<!----></a></div></nav><!--]--><!--[--><!----><!--]--></div><div class="vp-navbar-end"><!--[--><!----><!--]--><!--[--><!----><div class="nav-item vp-repo"><a class="vp-repo-link" href="https://github.com/l1binn/l1binn.github.io" target="_blank" rel="noopener noreferrer" aria-label="GitHub"><svg xmlns="http://www.w3.org/2000/svg" class="icon github-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="github icon" style="width:1.25rem;height:1.25rem;vertical-align:middle;"><path d="M511.957 21.333C241.024 21.333 21.333 240.981 21.333 512c0 216.832 140.544 400.725 335.574 465.664 24.49 4.395 32.256-10.07 32.256-23.083 0-11.69.256-44.245 0-85.205-136.448 29.61-164.736-64.64-164.736-64.64-22.315-56.704-54.4-71.765-54.4-71.765-44.587-30.464 3.285-29.824 3.285-29.824 49.195 3.413 75.179 50.517 75.179 50.517 43.776 75.008 114.816 53.333 142.762 40.79 4.523-31.66 17.152-53.377 31.19-65.537-108.971-12.458-223.488-54.485-223.488-242.602 0-53.547 19.114-97.323 50.517-131.67-5.035-12.33-21.93-62.293 4.779-129.834 0 0 41.258-13.184 134.912 50.346a469.803 469.803 0 0 1 122.88-16.554c41.642.213 83.626 5.632 122.88 16.554 93.653-63.488 134.784-50.346 134.784-50.346 26.752 67.541 9.898 117.504 4.864 129.834 31.402 34.347 50.474 78.123 50.474 131.67 0 188.586-114.73 230.016-224.042 242.09 17.578 15.232 33.578 44.672 33.578 90.454v135.85c0 13.142 7.936 27.606 32.854 22.87C862.25 912.597 1002.667 728.747 1002.667 512c0-271.019-219.648-490.667-490.71-490.667z"></path></svg></a></div><div class="nav-item hide-in-mobile"><button type="button" id="appearance-switch"><svg xmlns="http://www.w3.org/2000/svg" class="icon auto-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="auto icon" style="display:block;"><path d="M512 992C246.92 992 32 777.08 32 512S246.92 32 512 32s480 214.92 480 480-214.92 480-480 480zm0-840c-198.78 0-360 161.22-360 360 0 198.84 161.22 360 360 360s360-161.16 360-360c0-198.78-161.22-360-360-360zm0 660V212c165.72 0 300 134.34 300 300 0 165.72-134.28 300-300 300z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" class="icon dark-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="dark icon" style="display:none;"><path d="M524.8 938.667h-4.267a439.893 439.893 0 0 1-313.173-134.4 446.293 446.293 0 0 1-11.093-597.334A432.213 432.213 0 0 1 366.933 90.027a42.667 42.667 0 0 1 45.227 9.386 42.667 42.667 0 0 1 10.24 42.667 358.4 358.4 0 0 0 82.773 375.893 361.387 361.387 0 0 0 376.747 82.774 42.667 42.667 0 0 1 54.187 55.04 433.493 433.493 0 0 1-99.84 154.88 438.613 438.613 0 0 1-311.467 128z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" class="icon light-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="light icon" style="display:none;"><path d="M952 552h-80a40 40 0 0 1 0-80h80a40 40 0 0 1 0 80zM801.88 280.08a41 41 0 0 1-57.96-57.96l57.96-58a41.04 41.04 0 0 1 58 58l-58 57.96zM512 752a240 240 0 1 1 0-480 240 240 0 0 1 0 480zm0-560a40 40 0 0 1-40-40V72a40 40 0 0 1 80 0v80a40 40 0 0 1-40 40zm-289.88 88.08-58-57.96a41.04 41.04 0 0 1 58-58l57.96 58a41 41 0 0 1-57.96 57.96zM192 512a40 40 0 0 1-40 40H72a40 40 0 0 1 0-80h80a40 40 0 0 1 40 40zm30.12 231.92a41 41 0 0 1 57.96 57.96l-57.96 58a41.04 41.04 0 0 1-58-58l58-57.96zM512 832a40 40 0 0 1 40 40v80a40 40 0 0 1-80 0v-80a40 40 0 0 1 40-40zm289.88-88.08 58 57.96a41.04 41.04 0 0 1-58 58l-57.96-58a41 41 0 0 1 57.96-57.96z"></path></svg></button></div><!----><!--]--><!--[--><!----><!--]--><button type="button" class="vp-toggle-navbar-button" aria-label="Toggle Navbar" aria-expanded="false" aria-controls="nav-screen"><span><span class="vp-top"></span><span class="vp-middle"></span><span class="vp-bottom"></span></span></button></div></header><!----><!--]--><!----><div class="toggle-sidebar-wrapper"><span class="arrow start"></span></div><aside id="sidebar" class="vp-sidebar"><!--[--><!----><!--]--><ul class="vp-sidebar-links"></ul><!--[--><!----><!--]--></aside><!--[--><main id="main-content" class="vp-page"><!--[--><!--[--><!----><!--]--><!----><nav class="vp-breadcrumb disable"></nav><div class="vp-page-title"><h1><!---->计算机网络实践 | 华为eNSP</h1><div class="page-info"><span class="page-author-info" aria-label="作者🖊" data-balloon-pos="down"><svg xmlns="http://www.w3.org/2000/svg" class="icon author-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="author icon"><path d="M649.6 633.6c86.4-48 147.2-144 147.2-249.6 0-160-128-288-288-288s-288 128-288 288c0 108.8 57.6 201.6 147.2 249.6-121.6 48-214.4 153.6-240 288-3.2 9.6 0 19.2 6.4 25.6 3.2 9.6 12.8 12.8 22.4 12.8h704c9.6 0 19.2-3.2 25.6-12.8 6.4-6.4 9.6-16 6.4-25.6-25.6-134.4-121.6-240-243.2-288z"></path></svg><span><a class="page-author-item" href="https://l1binn.github.io" target="_blank" rel="noopener noreferrer">高礼彬</a></span><span property="author" content="高礼彬"></span></span><!----><span class="page-date-info" aria-label="写作日期📅" data-balloon-pos="down"><svg xmlns="http://www.w3.org/2000/svg" class="icon calendar-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="calendar icon"><path d="M716.4 110.137c0-18.753-14.72-33.473-33.472-33.473-18.753 0-33.473 14.72-33.473 33.473v33.473h66.993v-33.473zm-334.87 0c0-18.753-14.72-33.473-33.473-33.473s-33.52 14.72-33.52 33.473v33.473h66.993v-33.473zm468.81 33.52H716.4v100.465c0 18.753-14.72 33.473-33.472 33.473a33.145 33.145 0 01-33.473-33.473V143.657H381.53v100.465c0 18.753-14.72 33.473-33.473 33.473a33.145 33.145 0 01-33.473-33.473V143.657H180.6A134.314 134.314 0 0046.66 277.595v535.756A134.314 134.314 0 00180.6 947.289h669.74a134.36 134.36 0 00133.94-133.938V277.595a134.314 134.314 0 00-133.94-133.938zm33.473 267.877H147.126a33.145 33.145 0 01-33.473-33.473c0-18.752 14.72-33.473 33.473-33.473h736.687c18.752 0 33.472 14.72 33.472 33.473a33.145 33.145 0 01-33.472 33.473z"></path></svg><span><!----></span><meta property="datePublished" content="2024-04-05T00:00:00.000Z"></span><!----><span class="page-reading-time-info" aria-label="阅读时间⌛" data-balloon-pos="down"><svg xmlns="http://www.w3.org/2000/svg" class="icon timer-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="timer icon"><path d="M799.387 122.15c4.402-2.978 7.38-7.897 7.38-13.463v-1.165c0-8.933-7.38-16.312-16.312-16.312H256.33c-8.933 0-16.311 7.38-16.311 16.312v1.165c0 5.825 2.977 10.874 7.637 13.592 4.143 194.44 97.22 354.963 220.201 392.763-122.204 37.542-214.893 196.511-220.2 389.397-4.661 5.049-7.638 11.651-7.638 19.03v5.825h566.49v-5.825c0-7.379-2.849-13.981-7.509-18.9-5.049-193.016-97.867-351.985-220.2-389.527 123.24-37.67 216.446-198.453 220.588-392.892zM531.16 450.445v352.632c117.674 1.553 211.787 40.778 211.787 88.676H304.097c0-48.286 95.149-87.382 213.728-88.676V450.445c-93.077-3.107-167.901-81.297-167.901-177.093 0-8.803 6.99-15.793 15.793-15.793 8.803 0 15.794 6.99 15.794 15.793 0 80.261 63.69 145.635 142.01 145.635s142.011-65.374 142.011-145.635c0-8.803 6.99-15.793 15.794-15.793s15.793 6.99 15.793 15.793c0 95.019-73.789 172.82-165.96 177.093z"></path></svg><span>大约 4 分钟</span><meta property="timeRequired" content="PT4M"></span><span class="page-category-info" aria-label="分类🌈" data-balloon-pos="down"><svg xmlns="http://www.w3.org/2000/svg" class="icon category-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="category icon"><path d="M148.41 106.992h282.176c22.263 0 40.31 18.048 40.31 40.31V429.48c0 22.263-18.047 40.31-40.31 40.31H148.41c-22.263 0-40.311-18.047-40.311-40.31V147.302c0-22.263 18.048-40.31 40.311-40.31zM147.556 553.478H429.73c22.263 0 40.311 18.048 40.311 40.31v282.176c0 22.263-18.048 40.312-40.31 40.312H147.555c-22.263 0-40.311-18.049-40.311-40.312V593.79c0-22.263 18.048-40.311 40.31-40.311zM593.927 106.992h282.176c22.263 0 40.31 18.048 40.31 40.31V429.48c0 22.263-18.047 40.31-40.31 40.31H593.927c-22.263 0-40.311-18.047-40.311-40.31V147.302c0-22.263 18.048-40.31 40.31-40.31zM730.22 920.502H623.926c-40.925 0-74.22-33.388-74.22-74.425V623.992c0-41.038 33.387-74.424 74.425-74.424h222.085c41.038 0 74.424 33.226 74.424 74.067v114.233c0 10.244-8.304 18.548-18.547 18.548s-18.548-8.304-18.548-18.548V623.635c0-20.388-16.746-36.974-37.33-36.974H624.13c-20.585 0-37.331 16.747-37.331 37.33v222.086c0 20.585 16.654 37.331 37.126 37.331H730.22c10.243 0 18.547 8.304 18.547 18.547 0 10.244-8.304 18.547-18.547 18.547z"></path></svg><!--[--><span class="page-category-item category2" role>计算机网络</span><!--]--><meta property="articleSection" content="计算机网络"></span><span class="page-tag-info" aria-label="标签🏷" data-balloon-pos="down"><svg xmlns="http://www.w3.org/2000/svg" class="icon tag-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="tag icon"><path d="M939.902 458.563L910.17 144.567c-1.507-16.272-14.465-29.13-30.737-30.737L565.438 84.098h-.402c-3.215 0-5.726 1.005-7.634 2.913l-470.39 470.39a10.004 10.004 0 000 14.164l365.423 365.424c1.909 1.908 4.42 2.913 7.132 2.913s5.223-1.005 7.132-2.913l470.39-470.39c2.01-2.11 3.014-5.023 2.813-8.036zm-240.067-72.121c-35.458 0-64.286-28.828-64.286-64.286s28.828-64.285 64.286-64.285 64.286 28.828 64.286 64.285-28.829 64.286-64.286 64.286z"></path></svg><!--[--><span class="page-tag-item tag1" role>eNSP</span><span class="page-tag-item tag5" role>华为</span><!--]--><meta property="keywords" content="eNSP,华为"></span></div><hr></div><div class="toc-place-holder"><aside id="toc"><!--[--><!----><!--]--><div class="toc-header">此页内容<button type="button" class="print-button" title="打印"><svg xmlns="http://www.w3.org/2000/svg" class="icon print-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="print icon"><path d="M819.2 364.8h-44.8V128c0-17.067-14.933-32-32-32H281.6c-17.067 0-32 14.933-32 32v236.8h-44.8C145.067 364.8 96 413.867 96 473.6v192c0 59.733 49.067 108.8 108.8 108.8h44.8V896c0 17.067 14.933 32 32 32h460.8c17.067 0 32-14.933 32-32V774.4h44.8c59.733 0 108.8-49.067 108.8-108.8v-192c0-59.733-49.067-108.8-108.8-108.8zM313.6 160h396.8v204.8H313.6V160zm396.8 704H313.6V620.8h396.8V864zM864 665.6c0 25.6-19.2 44.8-44.8 44.8h-44.8V588.8c0-17.067-14.933-32-32-32H281.6c-17.067 0-32 14.933-32 32v121.6h-44.8c-25.6 0-44.8-19.2-44.8-44.8v-192c0-25.6 19.2-44.8 44.8-44.8h614.4c25.6 0 44.8 19.2 44.8 44.8v192z"></path></svg></button></div><div class="toc-wrapper"><ul class="toc-list"><!--[--><li class="toc-item"><a class="route-link toc-link level2" href="/#什么是ensp">什么是eNSP？</a></li><!----><!--]--><!--[--><li class="toc-item"><a class="route-link toc-link level2" href="/#环境安装">环境安装</a></li><li><ul class="toc-list"><!--[--><li class="toc-item"><a class="route-link toc-link level3" href="/#常见安装失败问题及解决方式">常见安装失败问题及解决方式</a></li><!----><!--]--></ul></li><!--]--><!--[--><li class="toc-item"><a class="route-link toc-link level2" href="/#实验案例一-静态ip配置">实验案例一：静态IP配置</a></li><!----><!--]--><!--[--><li class="toc-item"><a class="route-link toc-link level2" href="/#实验案例二-动态ip配置">实验案例二：动态IP配置</a></li><!----><!--]--><!--[--><li class="toc-item"><a class="route-link toc-link level2" href="/#实验案例三-动态ip子网与-静态ip子网相互连接-配置静态-动态路由">实验案例三：动态IP子网与 静态IP子网相互连接（配置静态/动态路由）</a></li><!----><!--]--></ul><div class="toc-marker" style="top:-1.7rem;"></div></div><!--[--><!----><!--]--></aside></div><!--[--><!----><!--]--><div class="theme-hope-content"><h2 id="什么是ensp" tabindex="-1"><a class="header-anchor" href="#什么是ensp"><span>什么是eNSP？</span></a></h2><p>eNSP（Enterprise Network Simulation Platform）是一款由华为提供的网络仿真工具平台。 它主要对企业网络路由器、交换机进行软件仿真，完美呈现真实设备实景，并且支持大型网络模拟。 用户可以在没有真实设备的情况下，利用eNSP进行模拟演练和学习网络技术。</p><p>eNSP可以模拟各种网络设备，如交换机、路由器、防火墙等，并能创建以太网、无线网络等多种网络拓扑。 此外，它还提供了完整的网络设备配置和监控功能，使用户能够在虚拟环境中进行真实网络操作。 该平台还包含了丰富的实验场景，如企业网络的基本搭建、VLAN、STP（Spanning Tree Protocol）、 OSPF（Open Shortest Path First）、BGP（Border Gateway Protocol）等协议的配置和调试， 从而帮助用户深入理解网络知识和技术。</p><p>此外，eNSP还支持虚拟机的导入和使用，用户可以在虚拟机上部署各种服务和应用， 如Web服务器、邮件服务器等，以便进行更综合、真实的网络实验。</p><h2 id="环境安装" tabindex="-1"><a class="header-anchor" href="#环境安装"><span>环境安装</span></a></h2><ol><li>先获取以下列表，或者解压（ensp套件.rar)</li></ol><div class="hint-container info"><p class="hint-container-title">下载ensp套件.rar</p><p><a href="https://pan.baidu.com/s/1tZ8j--jwGJtCxMq0fEN89g?pwd=9xha" target="_blank" rel="noopener noreferrer">百度网盘链接<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a> 提取码：9xha</p></div><div class="language-text line-numbers-mode" data-ext="text" data-title="text"><pre class="language-text"><code>eNSP 1.3.00.100 Setup.exe
VirtualBox-5.2.44-139111-Win.exe
WinPcap_4_1_3.exe
Wireshark-win64-2.6.6.exe
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><ol start="2"><li>首先安装以下内容</li></ol><div class="language-text line-numbers-mode" data-ext="text" data-title="text"><pre class="language-text"><code>VirtualBox-5.2.44-139111-Win.exe
WinPcap_4_1_3.exe
Wireshark-win64-2.6.6.exe
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><ol start="3"><li>安装 <code>eNSP</code></li></ol><div class="language-text line-numbers-mode" data-ext="text" data-title="text"><pre class="language-text"><code>eNSP 1.3.00.100 Setup.exe
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><h3 id="常见安装失败问题及解决方式" tabindex="-1"><a class="header-anchor" href="#常见安装失败问题及解决方式"><span>常见安装失败问题及解决方式</span></a></h3><h4 id="winpcap-4-1-3版本过高-a-newer-version-of-winpcap-internal-version-5-1-60" tabindex="-1"><a class="header-anchor" href="#winpcap-4-1-3版本过高-a-newer-version-of-winpcap-internal-version-5-1-60"><span>WinPcap_4_1_3版本过高：a newer version of winpcap(internal version 5.1.60)</span></a></h4><p>提示本地安装有更高版本的WinPcap时，按如下操作即可解决。</p><p>找到相应文件，扩展名修改成如下：</p><ul><li><code>C:\Windows\SysWOW64 的wpcap.dll</code> 改成 <code>wpcap.dll.old</code></li><li><code>C:\Windows\SysWOW64的packet.dll</code> 改成 <code>packet.dll.old</code></li></ul><h2 id="实验案例一-静态ip配置" tabindex="-1"><a class="header-anchor" href="#实验案例一-静态ip配置"><span>实验案例一：静态IP配置</span></a></h2><figure><img src="/practice/network/静态IP配置拓扑图.png" alt="静态IP配置拓扑图" tabindex="0" loading="lazy"><figcaption>静态IP配置拓扑图</figcaption></figure><ol><li>配置 <code>4</code> 个终端</li></ol><p>终端1</p><div class="language-text line-numbers-mode" data-ext="text" data-title="text"><pre class="language-text"><code>IP: 192.168.1.100
子网掩码: 255.255.255.0
网关: 192.168.1.1
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><p>终端2</p><div class="language-text line-numbers-mode" data-ext="text" data-title="text"><pre class="language-text"><code>IP: 192.168.1.101
子网掩码: 255.255.255.0
网关: 192.168.1.1
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><p>终端3</p><div class="language-text line-numbers-mode" data-ext="text" data-title="text"><pre class="language-text"><code>IP: 192.168.2.100
子网掩码: 255.255.255.0
网关: 192.168.2.1
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><p>终端4</p><div class="language-text line-numbers-mode" data-ext="text" data-title="text"><pre class="language-text"><code>IP: 192.168.2.101
子网掩码: 255.255.255.0
网关: 192.168.2.1
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><ol start="2"><li>将 <code>终端1</code> 和 <code>终端2</code> 连接到 <code>交换机1</code>，将 <code>终端3</code> 和 <code>终端4</code> 连接到 <code>交换机2</code></li></ol><blockquote><p>终端2可ping通终端1，终端4可ping通终端3。</p></blockquote><ol start="3"><li>选择 <code>AR2220</code> 路由器，并且双击配置路由器，配置如下</li></ol><div class="language-bash line-numbers-mode" data-ext="sh" data-title="sh"><pre class="language-bash"><code>system-view
interface g0/0/0
<span class="token function">ip</span> address <span class="token number">192.168</span>.1.1 <span class="token number">24</span> 
interface g0/0/1
<span class="token function">ip</span> address <span class="token number">192.168</span>.2.1 <span class="token number">24</span>
quit 
<span class="token builtin class-name">return</span>
save
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><p>注释如下（终端无法解读注释）：</p><div class="language-bash line-numbers-mode" data-ext="sh" data-title="sh"><pre class="language-bash"><code>system-view // 进入系统视图，以便进行配置  
interface g0/0/0 // 选择GigabitEthernet <span class="token number">0</span>/0/0接口  
<span class="token function">ip</span> address <span class="token number">192.168</span>.1.1 <span class="token number">24</span> // 为该接口配置IP地址为192.168.1.1，子网掩码为255.255.255.0
interface g0/0/1 // 选择GigabitEthernet <span class="token number">0</span>/0/1接口  
<span class="token function">ip</span> address <span class="token number">192.168</span>.2.1 <span class="token number">24</span> // 为该接口配置IP地址为192.168.2.1，子网掩码为255.255.255.0
quit // 退出当前接口视图，返回到上一级视图（系统视图）  
<span class="token builtin class-name">return</span> // 退出系统视图，返回到用户视图（<span class="token operator">&lt;</span>Huawei<span class="token operator">&gt;</span>提示符下）  
save // 在用户视图下执行，保存路由器的当前配置到存储设备中
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><blockquote><p>此时各个终端能够ping通其他终端</p></blockquote><p><a href="/practice/network/Practice1.topo">获取Practice1.topo</a></p><h2 id="实验案例二-动态ip配置" tabindex="-1"><a class="header-anchor" href="#实验案例二-动态ip配置"><span>实验案例二：动态IP配置</span></a></h2><p><img src="/practice/network/动态IP配置拓扑图.png" alt="动态IP配置拓扑图" loading="lazy"> 拓扑结构和实验1一样，<strong>区别在于需要对原先设置终端的IP地址从静态改为DHCP</strong></p><div class="language-bash line-numbers-mode" data-ext="sh" data-title="sh"><pre class="language-bash"><code>system-view
interface g0/0/0
<span class="token function">ip</span> address <span class="token number">10.1</span>.1.1 <span class="token number">24</span>
interface g0/0/1
<span class="token function">ip</span> address <span class="token number">10.1</span>.2.1 <span class="token number">24</span>
quit 
dhcp <span class="token builtin class-name">enable</span>
interface g0/0/0
dhcp <span class="token keyword">select</span> interface
dhcp server dns-list <span class="token number">114.114</span>.114.114
interface g0/0/1
dhcp <span class="token keyword">select</span> interface
dhcp server dns-list <span class="token number">114.114</span>.114.114
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><div class="hint-container info"><p class="hint-container-title">相关信息</p><p><code>dhcp server</code> 指的是DHCP服务的相关配置</p><ul><li><code>interface</code> 命令允许网络设备上的一个接口作为DHCP服务器，为连接到这个接口的设备动态分配IP地址。</li><li><code>dns-list</code> 是一个参数，用于指定DNS服务器的IP地址列表</li></ul></div><h2 id="实验案例三-动态ip子网与-静态ip子网相互连接-配置静态-动态路由" tabindex="-1"><a class="header-anchor" href="#实验案例三-动态ip子网与-静态ip子网相互连接-配置静态-动态路由"><span>实验案例三：动态IP子网与 静态IP子网相互连接（配置静态/动态路由）</span></a></h2><figure><img src="/practice/network/两个不同子网路由.png" alt="两个不同子网路由" tabindex="0" loading="lazy"><figcaption>两个不同子网路由</figcaption></figure><blockquote><p>注意：两台路由器的连线需要在同一子网下。 路由器接口1</p></blockquote><div class="language-bash line-numbers-mode" data-ext="sh" data-title="sh"><pre class="language-bash"><code>system-view
interface g0/0/0
<span class="token function">ip</span> address <span class="token number">10.1</span>.3.1 <span class="token number">24</span>
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><p>路由器接口2</p><div class="language-bash line-numbers-mode" data-ext="sh" data-title="sh"><pre class="language-bash"><code>system-view
interface g0/0/0
<span class="token function">ip</span> address <span class="token number">10.1</span>.3.2 <span class="token number">24</span>
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><p>查看路由表</p><div class="language-bash line-numbers-mode" data-ext="sh" data-title="sh"><pre class="language-bash"><code>display <span class="token function">ip</span> routing-table
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><p>静态路由配置</p><div class="language-bash line-numbers-mode" data-ext="sh" data-title="sh"><pre class="language-bash"><code><span class="token function">ip</span> route-static <span class="token operator">&lt;</span>目标网段<span class="token operator">&gt;</span> <span class="token operator">&lt;</span>子网掩码<span class="token operator">&gt;</span> <span class="token operator">&lt;</span>下一跳的IP<span class="token operator">&gt;</span>
<span class="token comment"># 删除</span>
undo <span class="token function">ip</span> route-static <span class="token operator">&lt;</span>目标网段<span class="token operator">&gt;</span> <span class="token operator">&lt;</span>子网掩码<span class="token operator">&gt;</span> <span class="token operator">&lt;</span>下一跳的IP<span class="token operator">&gt;</span>
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><p>动态路由配置</p><div class="language-bash line-numbers-mode" data-ext="sh" data-title="sh"><pre class="language-bash"><code>rip
version <span class="token number">2</span>
network <span class="token operator">&lt;</span>声明直连网段<span class="token operator">&gt;</span>
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div></div><!--[--><!----><!--]--><footer class="page-meta"><!----><div class="meta-item git-info"><div class="update-time"><span class="label">上次编辑于: </span><!----></div><!----></div></footer><!----><!----><!--[--><!----><!--]--><!--]--></main><!--]--><footer class="vp-footer-wrapper"><!----><div class="vp-copyright">Copyright © 2024 高礼彬 </div></footer></div><!--]--><!--[--><!----><!--]--><!--]--></div>
    <script type="module" src="/assets/app-BlE301HX.js" defer></script>
  </body>
</html>
